<div class="tableinfo">
    <div class="tableHeader">
        <p>Phân Công Đề Án</p>
    </div>
    
    <form action="../controller/xuly_phancongda.php" method="POST" id="frmphancong" name="frmphancong" onSubmit="return checkInput();">
    <table border ="0" cellspacing ="0" cellpadding ="0">
        
        <tr>
            <td colspan="3" align="center">
            <select name="chondeanpc" id="chondeanpc">
                <option value="">Chọn Đề Án</option>
                <?php
                    $load_ds_dean = "select * from dean";
                    $kq_load_ds_dean = executeQuery($load_ds_dean);
                    while($ds = mysql_fetch_array($kq_load_ds_dean)){
                        $tendan = $ds['TenDA'];
                        $mada = $ds['MaDA'];
                        echo "<option value = '$mada'>$tendan</option>";
                    }
                 ?>
            </select>
            
            </td>
        </tr>
        <tr>
            
            <td align="center" colspan="3"><b>Danh Sách Nhân Viên</b></td>                
        </tr>
        
          
                <?php
                    $load_ds_nv = " select a.id_NhanVien, a.HoTen, c.TenPhong from chitietnhanvien a 
                                    inner join nhanvien b on a.id_NhanVien = b.id_NhanVien
                                    inner join phongban c on b.MaPhong = c.MaPhong ";
                    $kq_load_ds_nv = executeQuery($load_ds_nv);
                    
                    while($nv = mysql_fetch_array($kq_load_ds_nv)){
                        $idnhanvien = $nv['id_NhanVien'];
                        $tennhanvien = $nv['HoTen'];
                        $phong = $nv['TenPhong'];
                        echo "<tr><td align= 'right'><input type='checkbox' id='idnhanvien' name='idnhanvien[]' value='$idnhanvien' /></td><td>$tennhanvien</td> <td>$phong</td></tr>";
                    }
                    
                 ?>

        

        <tr>
            <td colspan="2"> Thời gian<input type="text" name="thoigiandean" id="thoigiandean" value="" /></td>
            <td>Ghi chú <input type="text" name="ghichutxt" id="ghichutxt" value=""  /> </td>
        </tr>
        <tr>
            <td align ="center" colspan="3">
                <input type="submit" value="Lưu dữ liệu"/>
            </td>

        </tr>              

    </table>
    </form>
</div>
